package Others.DesignPattern.VisitorPattern.Original.Object;

import cn.hutool.core.util.StrUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class woman extends people {

    @Override
    public void show() {
        if (StrUtil.isEmpty(status)) {
            System.out.println("当前无状态！");
        } else {
            if (status.equals("成功"))
                System.out.println("女人成功时，背后大多有一个不成功的男人。");
            if (status.equals("失败"))
                System.out.println("女人失败时，眼泪汪汪，谁也劝不了。");
            if (status.equals("恋爱"))
                System.out.println("女人恋爱时，遇事懂也装不懂。");
        }
    }
}
